<!--乘法表-->
<template>
<table>
    <tbody>
        <tr v-for='i in n'>
            <td v-for='j in i'>
              {{ j }}x{{ i }}={{ i*j }}
            </td>
        </tr>
    </tbody>
</table>
</template>

<script setup>
import{ref}from'vue';
const n=ref(9);
</script>

<style lang="scss" scoped>

</style>